// 引入动画库
require('../less/commCss/animate.css')
// 引入自己的css
require('../less/advert.less')

onload = function(){
    const timeBoxTimer = document.querySelector('.time-box-timer')
    // 获取初始化时间
    let timr = parseInt(timeBoxTimer.textContent)

    let timer = setInterval(function(){
        timr--;
        if(timr > 0){
            timeBoxTimer.textContent = `${timr}s`
        }else{
            clearInterval(timer)
            location.href = './login.html'
        }
    },1000)
}